import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  response: {
    [name: string]: any;
  };
  status: {
    [name: string]: any;
  };
  gameInfo: any;
  userInfo: any;
  gameReceiveInfo: any;
  task: any;
  rankingItems: Array<any>;
  rankingTopThreeItems: Array<any>;
  rankingTopElseItems: Array<any>;
  rankingSingledItems: Array<any>;
  prop: any;
  gameCrticleInfo: any;
  codeMessage: string;
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;
  [name: string]: any;
};

export type IProps = IAllReducerProps & ActionType;

//自定义
export type IInfoProps = {};
export type IInfoState = {
  atModal?: any;
  pics?: any;
  loading?: {
    status: boolean;
    text: any;
    style?: any;
    textStyle?: any;
  };
  ActionSheet?: any;
  empty?: {
    status?: boolean;
    text: any;
  };
  giveGameTimes?: number;
  rankings?: any;
  imageError?: any;
  OPERATES?: Array<any>;
  renderPrizeContent?: Array<any>;
  refresherTriggered?: any;
  selectedProp?: any;
};
